#include <iostream>
#include <stdio.h>
using namespace std;
int x,y,z;
int n;
void output();
int main()
{
	while(scanf("%d",&n)!=EOF){
		output();
		
	}
	return 0;
}

void output()
{
	for(x=0;x<(int)n/5;x++){
		for(y=0;y<(int)n/3;y++){
			z=100-x-y;
			if(((15*x+9*y+z)<=3*n)&&(z>=0)){
				cout<<"x="<<x<<","<<"y="<<y<<","<<"z="<<z<<endl;
			}
			
		}
	}
}
